<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
session_start();
if(isset($_SESSION['cs_user_timezone'])){
	date_default_timezone_set($_SESSION['cs_user_timezone']);
}

$db['host'] = 'MYSQL_HOST';
$db['user'] = 'MYSQL_USER';
$db['pass'] = 'MYSQL_PASSWORD';
$db['name'] = 'MYSQL_DB_NAME';

$fbconfig = array(
  'appId' => 'YOUR_FACEBOOK_APP_ID',
  'secret' => 'APP_SECRET',
  'fileUpload' => false, // optional
  'allowSignedRequest' => false, // optional, but should be set to false for non-canvas apps
);

$fbperm = array(
	'scope' => 'public_profile,publish_actions,manage_pages,user_groups'
	);
define('SALT_KEY', 'TYPE_ANY_THING_YOU_WANT');
define('TIME_FORMAT', 'd/m/Y H:i:s');
define('PAGING_LIMIT', 20);
define('FB_BATCH_REQ_LIMIT', 50);
define('_FB_API_VERSION', '/v2.1');

mysql_connect($db['host'], $db['user'], $db['pass']) or die('Could not connect to MySQL server.');
mysql_select_db($db['name']) or die('No DB found.');

$userId = isset($_SESSION['cs_user_id']) ? $_SESSION['cs_user_id'] : null;
$accessToken = isset($_SESSION['cs_access_token']) ? $_SESSION['cs_access_token'] : null;